package com.heima.controller;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.media.dto.WmLoginDto;
import com.heima.service.WeMediaLoginService;
import org.aopalliance.intercept.Interceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/login")
public class WeMediaLoginController {

    @Autowired
    private WeMediaLoginService weMediaLoginService;

    // 登录验证
    ///wemedia/MEDIA/wemedia/login/in
    @PostMapping("/in")
    public ResponseResult login(@RequestBody WmLoginDto dto){
        return weMediaLoginService.login(dto);
    }
}
